apiVersion: v1
kind: ConfigMap
metadata:
  name: waiverdb-configmap
  labels:
    app: waiverdb
data:
  settings.py: |-
{% if env == 'staging' %}
    DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.phx2.fedoraproject.org:5432/waiverdb'
{% else %}
    DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.phx2.fedoraproject.org:5432/waiverdb'
{% endif %}
    AUTH_METHOD = 'OIDC'
    OIDC_CLIENT_SECRETS = '/etc/secret/client_secrets.json'
    PORT = 8080
